package com.zhiyou.shiro;

import com.zhiyou.bean.User;
import com.zhiyou.dao.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ShiroServiceImpl implements ShiroService{
    @Autowired
    UserMapper userMapper;
    @Override
    public Boolean isOnStatus(User user) {
        User user1 = userMapper.selectOne(user);
        Boolean f=false;
        if (user1!=null){
            if (user1.getuStatus().equals(1)){
                f=true;
            }
        }

        return f;
    }
}
